Merged
Conversation
Upgrade Django from 5.2.9 to 6.0 by updating requirements files. - Update requirements/main.txt: Django 5.2.9 → 6.0 - Update requirements/dev.txt: Django 5.2.9 → 6.0 - All 33 tests pass successfully - Wagtail 7.2.1 supports Django 6.0 Django 6.0 was released on December 3, 2025: https://docs.djangoproject.com/en/6.0/releases/6.0/ Wagtail 7.2.x supports Django 6.0: wagtail/wagtail#13622 Closes #173 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
matrixise
added a commit
that referenced
this pull request
Dec 24, 2025
Django 6.0 requires django.contrib.postgres to be explicitly added to INSTALLED_APPS when using PostgreSQL-specific features like SearchVectorField and GinIndex. This fixes the Heroku deployment error: wagtailsearch.IndexEntry: (postgres.E005) 'django.contrib.postgres' must be in INSTALLED_APPS in order to use SearchVectorField and GinIndex. Fixes deployment issue with Django 6.0 upgrade from PR #179. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
matrixise
added a commit
that referenced
this pull request
Dec 24, 2025
* 🚀 feat: upgrade to Django 6.0 Upgrade Django from 5.2.9 to 6.0 by updating requirements files. - Update requirements/main.txt: Django 5.2.9 → 6.0 - Update requirements/dev.txt: Django 5.2.9 → 6.0 - All 33 tests pass successfully - Wagtail 7.2.1 supports Django 6.0 Django 6.0 was released on December 3, 2025: https://docs.djangoproject.com/en/6.0/releases/6.0/ Wagtail 7.2.x supports Django 6.0: wagtail/wagtail#13622 Closes #173 * fix: add django.contrib.postgres to INSTALLED_APPS for Django 6.0 Django 6.0 requires django.contrib.postgres to be explicitly added to INSTALLED_APPS when using PostgreSQL-specific features like SearchVectorField and GinIndex. This fixes the Heroku deployment error: wagtailsearch.IndexEntry: (postgres.E005) 'django.contrib.postgres' must be in INSTALLED_APPS in order to use SearchVectorField and GinIndex. Fixes deployment issue with Django 6.0 upgrade from PR #179. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: configure PostgreSQL for CI tests and move psycopg to main dependencies Changes: - Add PostgreSQL 17 service to GitHub Actions workflow - Configure tests to use PostgreSQL in CI (via DATABASE_URL) while keeping SQLite for local development - Move psycopg[binary] from production.in to main.in since django.contrib.postgres is now in base INSTALLED_APPS - Update workflow to install production.txt dependencies - Recompile all requirements files This fixes the test failure where django.contrib.postgres required psycopg to be installed but it was only available in production dependencies, not in the CI test environment. The conditional database configuration in tests.py allows: - CI: Uses PostgreSQL (matching production environment) - Local dev: Uses SQLite (simpler setup without PostgreSQL requirement) Fixes the Django 6.0 compatibility issue from the previous commit. --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR upgrades Django from version 5.2.9 to 6.0, which was released on December 3, 2025.
Changes
Compatibility
Testing
All 33 tests pass:
References
Closes #173
🤖 Generated with Claude Code